package com.hh.service.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.hh.common.model.user.RechargedProducts;
import com.hh.service.dao.RechargedProductsDao;
import com.hh.service.service.RechargedProductsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RechargedProductsServiceImpl implements RechargedProductsService {
    
    @Resource
    private RechargedProductsDao dao;
    
    @Override
    public List<RechargedProducts> list() {
        LambdaQueryWrapper<RechargedProducts> objectLambdaQueryWrapper = Wrappers.lambdaQuery();
        objectLambdaQueryWrapper.orderByAsc(RechargedProducts::getParValue);
        List<RechargedProducts> rechargedProducts = dao.selectList(objectLambdaQueryWrapper);
        return rechargedProducts;
    }
}
